package com.example.dto;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

// 创建试卷的前端VO
@Data
public class ExamPaperDTO {
    private Integer paperId;
    private String paperName;
    private Integer busiTypeId1;
    private String busiTypeName1;
    private String busiType1;
    private Integer busiTypeId2;
    private String busiTypeName2;
    private Integer busiTypeId3;
    private String busiTypeName3;
    private Integer paperType;
    private Integer questionType;
    private Integer unifyPaper;
    private Integer questionOrder;
    private String description;
    private BigDecimal totalScore;
    private BigDecimal passScore;
    private String passScoreRate;
    private Questions questions; // 更新为新的字段名

    // 新增内部类：包含试题操作集合
    @Data
    public static class Questions {
        private List<QuestionOperation> add;    // 新增的试题
        private List<QuestionOperation> update; // 更新的试题
        private List<String> delete;            // 删除的试题ID列表
    }

    // 新增内部类：包含试题操作（新增、更新的试题）
    @Data
    public static class QuestionOperation {
        private Integer questionId;   // 试题ID
        private BigDecimal score;     // 分数
        private Integer orderNumber;  // 顺序号
    }
}
